package com.juli.v2xdemo.listener;

import com.juli.v2xdemo.entity.Bulleter;
import com.juli.v2xdemo.util.GPSutils;

public class AddBulleterListener extends AddEntityListener<Bulleter>{

	public AddBulleterListener(Bulleter t) {
		super(t);
	}

	@Override
	protected void onLayoutFinish() {
		Bulleter bullet = t;
		//初始化子弹的位置
		if (GPSutils. type==1) {
    	bullet.setTranslationX(820);
		}else{
		bullet.setTranslationX(1680);
		}

 		bullet.setTranslationY(-200);
		bullet.shot(1500,8000);
	}

}
